package com.springcloud.order.param;

import com.springcloud.commom.param.BaseParam;
import lombok.Data;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.NotBlank;


/**
* 参数类
 *
 * @author hzl
 * @date 2024-07-30 15:48:28
*/
@Data
public class OrderParam extends BaseParam {

    /**
     * 
     */
    @NotNull(message = "不能为空，请检查id参数", groups = {edit.class, delete.class, detail.class})
    private String id;

    /**
     * 商品id
     */
    @NotBlank(message = "商品id不能为空，请检查productId参数", groups = {add.class, edit.class})
    private String productId;

    /**
     * 订单数量
     */
    @NotNull(message = "订单数量不能为空，请检查orderNum参数", groups = {add.class, edit.class})
    private Integer orderNum;

}
